/*
 *  Obstacle.h
 *  Untitled
 *
 *  Created by Guo Wei Tan on 3/5/14.
 *  Copyright 2014 Catropico. All rights reserved.
 *
 */
#ifndef _OBSTACLE_H_
#define _OBSTACLE_H_

#include "cocos2d.h"

using namespace cocos2d;

class Obstacle: public CCSprite
{
private:
	static const float 	RECT_BUFFER_RADIUS = 10; // radius pixels
	static const int	OBSTACLE_WIDTH = 100;
	static const int	OBSTACLE_HEIGHT = 100;
	static const int	SPRITE_SHEET_WIDTH_COUNT = 4;
	static const int	SPRITE_SHEET_HEIGHT_COUNT = 3;

	float				actualRectBufferRadius;

	static CCRect 		randomObstacleRect();
	void setup(float scaleFactor);

public:
	//===== CONSTRUCTOR =====
	Obstacle();

	//===== DESTRUCTOR =====
	~Obstacle();

	//===== STATIC FUNCTIONS =====
	static Obstacle* 	createObstacle(char* filename, float scaleFactor);

	//===== GETTERS =====
	CCRect getRect();
};


#endif
